package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.jianchuanghua.ChuangHuaComb;
import com.yanqu.road.entity.activity.jianchuanghua.ChuangHuaInfo;
import com.yanqu.road.entity.activity.jianchuanghua.ChuangHuaUserData;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;

public class JianChuangHuaBussiness {

    public static List<ChuangHuaInfo> getChuangHuaInfoList(int activityId) {
        return DaoHelper.getChuangHuaInfoDaoImpl().getChuangHuaInfoList(activityId);
    }

    public static List<ChuangHuaComb> getChuangHuaCombList(int activityId) {
        return DaoHelper.getChuangHuaCombDaoImpl().getChuangHuaCombList(activityId);
    }

    public static ChuangHuaUserData getChuangHuaUserData(long userId, int activityId) {
        return DaoHelper.getChuangHuaUserDataDaoImpl().getChuangHuaUserData(userId, activityId);
    }

    public static boolean addChuangHuaUserData(ChuangHuaUserData data) {
        return DaoHelper.getChuangHuaUserDataDaoImpl().add(data);
    }

    public static boolean updateChuangHuaUserData(ChuangHuaUserData data) {
        return DaoHelper.getChuangHuaUserDataDaoImpl().update(data);
    }

}
